<?php
declare(strict_types=1);

namespace App\Queue\Job\Jobber;
use Hyperf\AsyncQueue\Job;
use App\Model\PssLogModel\InterfaceRequest;
use Service\Code\Normal;

/**
 * 订单接口日志写入
 * @author Administrator
 */
class OrderApiLogJobber extends Job
{
    public $params;
    public function __construct($params)
    {
        $this->params = $params;
    }
    
    /**
     * 开始处理接口日志数据
     * {@inheritDoc}
     * @see \Hyperf\AsyncQueue\JobInterface::handle()
     */
    public function handle()
    {
        InterfaceRequest::instance()->insert($this->params);
        return Normal::returnCode(Normal::SUC,"写入完成");
    }
}